package com.shopoo.oauth.domain.repository;

/**
 *
 * @Author <a href="mailto:android_li@sina.cn">MaoYuan.Li</a>
 * @Date 2022/3/19 12:37 PM
 */
public interface BloomFilterRepository {

	/**
	 * 将数据添加到布隆过滤器中
	 * @param data
	 * @Return boolean
	 * @Date: 2022/3/19 6:19 PM
	 * @Author: <a href="mailto:android_li@sina.cn">MaoYuan.Li</a>
	 */ 
	boolean add(Object data);

	/**
	 * 判断布隆过滤器是否包含数据
	 * @param data
	 * @Return boolean
	 * @Date: 2022/3/19 7:03 PM
	 * @Author: <a href="mailto:android_li@sina.cn">MaoYuan.Li</a>
	 */ 
	boolean mightContains(Object data);
}
